package com.stylefeng.guns.modular.fileManage.service.impl;

import com.baomidou.mybatisplus.service.impl.ServiceImpl;
import com.stylefeng.guns.common.persistence.dao.ZyBrewsMapper;
import com.stylefeng.guns.common.persistence.model.ZyBrews;
import com.stylefeng.guns.modular.fileManage.dao.ZyBrewsDao;
import com.stylefeng.guns.modular.fileManage.service.IZyBrewsService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
 * <p>
 * 服务实现类
 * </p>
 *
 * @author lsy
 * @since 2017-12-25
 */
@Service
public class ZyBrewsServiceImpl extends ServiceImpl<ZyBrewsMapper, ZyBrews> implements IZyBrewsService {

   @Autowired
   private ZyBrewsDao zyBrewsDao;

   /**
    * 通过茶叶Id查询冲泡方式详情
    *
    * @param teaId 茶叶id
    * @return 对应冲泡方式详情
    */
   @Override
   public ZyBrews findOneByTeaId(Integer teaId) {
     return zyBrewsDao.findOneByTeaId(teaId);
   }
}
